@section('meta')
    <style>
        body{background-color: #fff;}
        .modal-content{display: unset;}
        .layui-form-label {width: 100px;}
        .layui-input-block {margin-left: 138px;}
        .layui-input, .layui-textarea {width: 86%;}
        .layui-form-select .layui-edge {right: 16%;}
        .layui-form-select dl {min-width: 86%;}
        .new-table {margin: 20px 0;}
    </style>
@endsection
@include('Home.User.Common._meta')
<!----  新增： 所有客户  ---->
<div class="modal-content" id="addNew-content2">
    <div class="layui-form modal-client-info">
        <table class="layui-table">
            <thead>
            <tr>
                <th>ID</th>
                <th>信息类型</th>
                <th>信息ID</th>
                <th>下载时间</th>
            </tr>
            </thead>
            <tbody>
            @foreach($list as $item)
                <tr>
                    <td>{{$item->id}}</td>
                    @switch($item->type)
                        @case(1)
                        <td>简历</td>
                        <td>姓名: xxxx  简历ID: 1</td>
                        {{--<td>姓名:{{$item->DownloadLog?$item->DownloadLog->name:''}} 简历ID: {{$item->cid}}</td>--}}
                        @break
                        @case(2)
                        <td>客户</td>
                        <td>客户姓名: {{$item->DownloadLog?$item->DownloadLog->chinese_name:''}}  客户ID: {{$item->cid}}</td>
                        @break
                        @default
                        <td>未知</td>
                        <td>未知</td>
                    @endswitch
                    <td>{{$item->created_at}}</td>
                </tr>
            @endforeach
            </tbody>
        </table>

        <!-- 分页 s -->
        @if($num>1)
            <div class="news-pager">
                <ul class="pagination" id="page">
                </ul>
                <div class="pageJump">
                    <span>跳转到</span>
                    <input type="text"/>
                    <span>页</span>
                    <button type="button" class="button">确定</button>
                </div>
            </div>
    @endif
    <!-- 分页 e -->
    </div>
</div>

@section('footer')
    <script>
        /***  分页 JS  ***/
        Page({
            num: '{{$num}}',		//页码数
            startnum: '{{$page}}',				//指定页码
            elem:$('#page'),		//指定的元素
            callback:function(n){	//回调函数
                window.location.href = '{{route('download_user_list',$uid)}}?page='+n;
            }
        });
    </script>
@endsection
@include('Home.User.Common._footer')